]>
Commit | Line | Data |
---|---|---|
f0cc3e7b | 1 | /* |
67c8f8a1 | 2 | * |
f0cc3e7b | 3 | * Copyright (c) 2017 Apple Inc. All rights reserved. |
c9b9ae52 | 4 | * |
67c8f8a1 A |
5 | * Licensed under the Apache License, Version 2.0 (the "License"); |
6 | * you may not use this file except in compliance with the License. | |
7 | * You may obtain a copy of the License at | |
f0cc3e7b | 8 | * |
67c8f8a1 | 9 | * http://www.apache.org/licenses/LICENSE-2.0 |
f0cc3e7b | 10 | * |
67c8f8a1 A |
11 | * Unless required by applicable law or agreed to in writing, software |
12 | * distributed under the License is distributed on an "AS IS" BASIS, | |
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
14 | * See the License for the specific language governing permissions and | |
c9b9ae52 | 15 | * limitations under the License. |
263eeeab | 16 | */ |
67c8f8a1 | 17 | |
f0cc3e7b | 18 | #import "ViewController.h" |
67c8f8a1 | 19 | |
f0cc3e7b | 20 | @implementation ViewController |
67c8f8a1 | 21 | |
f0cc3e7b A |
22 | - (void)viewDidLoad { |
23 | [super viewDidLoad]; | |
67c8f8a1 | 24 | |
f0cc3e7b A |
25 | // Do any additional setup after loading the view. |
26 | } | |
67c8f8a1 A |
27 | |
28 | ||
f0cc3e7b A |
29 | - (void)setRepresentedObject:(id)representedObject { |
30 | [super setRepresentedObject:representedObject]; | |
67c8f8a1 | 31 | |
f0cc3e7b A |
32 | // Update the view, if already loaded. |
33 | } | |
67c8f8a1 | 34 | |
f0cc3e7b | 35 | - (IBAction)quitApplication:(id)sender |
67c8f8a1 | 36 | { |
f0cc3e7b A |
37 | (void)sender; // Unused |
38 | [NSApplication.sharedApplication terminate: sender]; | |
67c8f8a1 A |
39 | } |
40 | ||
f0cc3e7b | 41 | @end |